// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

/*引入elementUI*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 导入user.js
// fastMock不能再main中映入mock的js文件
// import user from './js/user/user.js'

/*全局引入Axios*/
import axios from 'axios'
axios.defaults.baseURL='https://www.fastmock.site/mock/aaf1d3b3c47399e33474608c356437d0/pethome'
Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
